

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>OCC.UnitsAPI module &mdash; pythonocc API 0.18 documentation</title>
  

  
  
  
  

  

  
  
    

  

  
  
    <link rel="stylesheet" href="static/css/theme.css" type="text/css" />
  

  

  
        <link rel="index" title="Index"
              href="genindex.html"/>
        <link rel="search" title="Search" href="search.html"/>
    <link rel="top" title="pythonocc API 0.18 documentation" href="index.html"/> 

  
  <script src="static/js/modernizr.min.js"></script>

</head>

<body class="wy-body-for-nav" role="document">

   
  <div class="wy-grid-for-nav">

    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search">
          

          
            <a href="index.html" class="icon icon-home"> pythonocc API
          

          
          </a>

          
            
            
              <div class="version">
                0.18
              </div>
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <!-- Local TOC -->
              <div class="local-toc"><ul>
<li><a class="reference internal" href="#">OCC.UnitsAPI module</a></li>
</ul>
</div>
            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="index.html">pythonocc API</a>
        
      </nav>


      
      <div class="wy-nav-content">
        <div class="rst-content">
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="index.html">Docs</a> &raquo;</li>
        
      <li>OCC.UnitsAPI module</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
            <a href="sources/OCC.UnitsAPI.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="occ-unitsapi-module">
<h1>OCC.UnitsAPI module<a class="headerlink" href="#occ-unitsapi-module" title="Permalink to this headline">¶</a></h1>
<span class="target" id="module-OCC.UnitsAPI"></span><p>The UnitsAPI global functions are used toconvert a value from any unit into another unit.PrinciplesConversion is executed among three unit systems:-  the SI System-  the user’s Local System-  the user’s Current System.The SI System is the standard international unitsystem. It is indicated by SI in the synopses ofthe UnitsAPI functions.The MDTV System corresponds to the SIinternational standard but the length unit and allits derivatives use millimeters instead of the meters.Both systems are proposed by Open CASCADE;the SI System is the standard option. Byselecting one of these two systems, the userdefines his Local System through theSetLocalSystem function. The Local System isindicated by LS in the synopses of the UnitsAPI functions.The user’s Local System units can be modified inthe working environment. The user defines hisCurrent System by modifying its units throughthe SetCurrentUnit function. The CurrentSystem is indicated by Current in the synopsesof the UnitsAPI functions.</p>
<dl class="class">
<dt id="OCC.UnitsAPI.SwigPyIterator">
<em class="property">class </em><code class="descname">SwigPyIterator</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.SwigPyIterator" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
<dl class="method">
<dt id="OCC.UnitsAPI.SwigPyIterator.advance">
<code class="descname">advance</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.SwigPyIterator.advance" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.UnitsAPI.SwigPyIterator.copy">
<code class="descname">copy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.SwigPyIterator.copy" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.UnitsAPI.SwigPyIterator.decr">
<code class="descname">decr</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.SwigPyIterator.decr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.UnitsAPI.SwigPyIterator.distance">
<code class="descname">distance</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.SwigPyIterator.distance" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.UnitsAPI.SwigPyIterator.equal">
<code class="descname">equal</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.SwigPyIterator.equal" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.UnitsAPI.SwigPyIterator.incr">
<code class="descname">incr</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.SwigPyIterator.incr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.UnitsAPI.SwigPyIterator.next">
<code class="descname">next</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.SwigPyIterator.next" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="OCC.UnitsAPI.SwigPyIterator.previous">
<code class="descname">previous</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.SwigPyIterator.previous" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="OCC.UnitsAPI.SwigPyIterator.thisown">
<code class="descname">thisown</code><a class="headerlink" href="#OCC.UnitsAPI.SwigPyIterator.thisown" title="Permalink to this definition">¶</a></dt>
<dd><p>The membership flag</p>
</dd></dl>

<dl class="method">
<dt id="OCC.UnitsAPI.SwigPyIterator.value">
<code class="descname">value</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.SwigPyIterator.value" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.new_instancemethod">
<code class="descname">new_instancemethod</code><span class="sig-paren">(</span><em>func</em>, <em>inst</em>, <em>cls</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.new_instancemethod" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.register_handle">
<code class="descname">register_handle</code><span class="sig-paren">(</span><em>handle</em>, <em>base_object</em><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.register_handle" title="Permalink to this definition">¶</a></dt>
<dd><p>Inserts the handle into the base object to
prevent memory corruption in certain cases</p>
</dd></dl>

<dl class="class">
<dt id="OCC.UnitsAPI.unitsapi">
<em class="property">class </em><code class="descname">unitsapi</code><a class="headerlink" href="#OCC.UnitsAPI.unitsapi" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/2/library/functions.html#object" title="(in Python v2.7)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.AnyFromLS">
<em class="property">static </em><code class="descname">AnyFromLS</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.AnyFromLS" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the local system units value to the local unit value. Example: AnyFromLS(25.4,’in.’) returns 1. if the LocalSystem is MDTV. Note: aUnit is also used to identify the type of physical quantity to convert.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.AnyFromSI">
<em class="property">static </em><code class="descname">AnyFromSI</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.AnyFromSI" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the SI system units value to the local unit value. Example: AnyFromSI(0.0254,’in.’) returns 0.001 Note: aUnit is also used to identify the type of physical quantity to convert.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.AnyToAny">
<em class="property">static </em><code class="descname">AnyToAny</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.AnyToAny" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the local unit value to another local unit value. Example: AnyToAny(0.0254,’in.’,’millimeter’) returns 1. ;</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit1</strong> (<em>char *</em>) – </li>
<li><strong>aUnit2</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.AnyToLS">
<em class="property">static </em><code class="descname">AnyToLS</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.AnyToLS" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the local unit value to the local system units value. Example: AnyToLS(1.,’in.’) returns 25.4 if the LocalSystem is MDTV.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
<ul class="simple">
<li>Converts the local unit value to the local system units value. and gives the associated dimension of the unit</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
<li><strong>aDim</strong> (<em>Handle_Units_Dimensions &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.AnyToSI">
<em class="property">static </em><code class="descname">AnyToSI</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.AnyToSI" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the local unit value to the SI system units value. Example: AnyToSI(1.,’in.’) returns 0.0254</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
<ul class="simple">
<li>Converts the local unit value to the SI system units value. and gives the associated dimension of the unit</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
<li><strong>aDim</strong> (<em>Handle_Units_Dimensions &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.Check">
<em class="property">static </em><code class="descname">Check</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.Check" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Checks the coherence between the quantity &lt;aQuantity&gt; and the unit &lt;aUnits&gt; in the current system and returns False when it’s WRONG.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.CurrentFromAny">
<em class="property">static </em><code class="descname">CurrentFromAny</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.CurrentFromAny" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the aData value expressed in the unit aUnit, into the current unit for the working environment, as defined for the physical quantity aQuantity by the last call to the SetCurrentUnit function.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.CurrentFromLS">
<em class="property">static </em><code class="descname">CurrentFromLS</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.CurrentFromLS" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the local system units value to the current unit value. Example: CurrentFromLS(1000.,’LENGTH’) returns 1. if current length unit is meter and LocalSystem is MDTV.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.CurrentFromSI">
<em class="property">static </em><code class="descname">CurrentFromSI</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.CurrentFromSI" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the SI system units value to the current unit value. Example: CurrentFromSI(0.001,’LENGTH’) returns 1 if current length unit is millimeter.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.CurrentToAny">
<em class="property">static </em><code class="descname">CurrentToAny</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.CurrentToAny" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the aData value expressed in the current unit for the working environment, as defined for the physical quantity aQuantity by the last call to the SetCurrentUnit function, into the unit aUnit.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.CurrentToLS">
<em class="property">static </em><code class="descname">CurrentToLS</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.CurrentToLS" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the current unit value to the local system units value. Example: CurrentToLS(1.,’LENGTH’) returns 1000. if the current length unit is meter and LocalSystem is MDTV.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.CurrentToSI">
<em class="property">static </em><code class="descname">CurrentToSI</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.CurrentToSI" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the current unit value to the SI system units value. Example: CurrentToSI(1.,’LENGTH’) returns 0.001 if current length unit is millimeter.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.CurrentUnit">
<em class="property">static </em><code class="descname">CurrentUnit</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.CurrentUnit" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns the current unit dimension &lt;aUnit&gt; from the unit quantity &lt;aQuantity&gt;.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aQuantity</strong> (<em>char *</em>) – </td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">char *</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.DimensionAmountOfSubstance">
<em class="property">static </em><code class="descname">DimensionAmountOfSubstance</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.DimensionAmountOfSubstance" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.DimensionElectricCurrent">
<em class="property">static </em><code class="descname">DimensionElectricCurrent</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.DimensionElectricCurrent" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.DimensionLength">
<em class="property">static </em><code class="descname">DimensionLength</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.DimensionLength" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.DimensionLess">
<em class="property">static </em><code class="descname">DimensionLess</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.DimensionLess" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.DimensionLuminousIntensity">
<em class="property">static </em><code class="descname">DimensionLuminousIntensity</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.DimensionLuminousIntensity" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.DimensionMass">
<em class="property">static </em><code class="descname">DimensionMass</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.DimensionMass" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.DimensionPlaneAngle">
<em class="property">static </em><code class="descname">DimensionPlaneAngle</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.DimensionPlaneAngle" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.DimensionSolidAngle">
<em class="property">static </em><code class="descname">DimensionSolidAngle</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.DimensionSolidAngle" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns the basic dimensions.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.DimensionThermodynamicTemperature">
<em class="property">static </em><code class="descname">DimensionThermodynamicTemperature</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.DimensionThermodynamicTemperature" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.DimensionTime">
<em class="property">static </em><code class="descname">DimensionTime</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.DimensionTime" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.Dimensions">
<em class="property">static </em><code class="descname">Dimensions</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.Dimensions" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>return the dimension associated to the quantity</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aQuantity</strong> (<em>char *</em>) – </td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.LSToSI">
<em class="property">static </em><code class="descname">LSToSI</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.LSToSI" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the local system units value to the SI system unit value. Example: LSToSI(1.,’LENGTH’) returns 0.001 if the local system length unit is millimeter.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.LocalSystem">
<em class="property">static </em><code class="descname">LocalSystem</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.LocalSystem" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns the current local system units.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">UnitsAPI_SystemUnits</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.Reload">
<em class="property">static </em><code class="descname">Reload</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.Reload" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">void</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.SIToLS">
<em class="property">static </em><code class="descname">SIToLS</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.SIToLS" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the SI system unit value to the local system units value. Example: SIToLS(1.,’LENGTH’) returns 1000. if the local system length unit is millimeter.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.Save">
<em class="property">static </em><code class="descname">Save</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.Save" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>saves the units in the file .CurrentUnits of the directory pointed by the CSF_CurrentUnitsUserDefaults environment variable.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">void</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.SetCurrentUnit">
<em class="property">static </em><code class="descname">SetCurrentUnit</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.SetCurrentUnit" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Sets the current unit dimension &lt;aUnit&gt; to the unit quantity &lt;aQuantity&gt;. Example: SetCurrentUnit(‘LENGTH’,’millimeter’)</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">void</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="staticmethod">
<dt id="OCC.UnitsAPI.unitsapi.SetLocalSystem">
<em class="property">static </em><code class="descname">SetLocalSystem</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.SetLocalSystem" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Sets the local system units. Example: SetLocalSystem(UnitsAPI_MDTV)</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aSystemUnit</strong> (<em>UnitsAPI_SystemUnits</em>) – default value is UnitsAPI_SI</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">void</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="attribute">
<dt id="OCC.UnitsAPI.unitsapi.thisown">
<code class="descname">thisown</code><a class="headerlink" href="#OCC.UnitsAPI.unitsapi.thisown" title="Permalink to this definition">¶</a></dt>
<dd><p>The membership flag</p>
</dd></dl>

</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_AnyFromLS">
<code class="descname">unitsapi_AnyFromLS</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_AnyFromLS" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the local system units value to the local unit value. Example: AnyFromLS(25.4,’in.’) returns 1. if the LocalSystem is MDTV. Note: aUnit is also used to identify the type of physical quantity to convert.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_AnyFromSI">
<code class="descname">unitsapi_AnyFromSI</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_AnyFromSI" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the SI system units value to the local unit value. Example: AnyFromSI(0.0254,’in.’) returns 0.001 Note: aUnit is also used to identify the type of physical quantity to convert.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_AnyToAny">
<code class="descname">unitsapi_AnyToAny</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_AnyToAny" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the local unit value to another local unit value. Example: AnyToAny(0.0254,’in.’,’millimeter’) returns 1. ;</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit1</strong> (<em>char *</em>) – </li>
<li><strong>aUnit2</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_AnyToLS">
<code class="descname">unitsapi_AnyToLS</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_AnyToLS" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the local unit value to the local system units value. Example: AnyToLS(1.,’in.’) returns 25.4 if the LocalSystem is MDTV.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
<ul class="simple">
<li>Converts the local unit value to the local system units value. and gives the associated dimension of the unit</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
<li><strong>aDim</strong> (<em>Handle_Units_Dimensions &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_AnyToSI">
<code class="descname">unitsapi_AnyToSI</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_AnyToSI" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the local unit value to the SI system units value. Example: AnyToSI(1.,’in.’) returns 0.0254</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
<ul class="simple">
<li>Converts the local unit value to the SI system units value. and gives the associated dimension of the unit</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
<li><strong>aDim</strong> (<em>Handle_Units_Dimensions &amp;</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_Check">
<code class="descname">unitsapi_Check</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_Check" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Checks the coherence between the quantity &lt;aQuantity&gt; and the unit &lt;aUnits&gt; in the current system and returns False when it’s WRONG.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)">bool</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_CurrentFromAny">
<code class="descname">unitsapi_CurrentFromAny</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_CurrentFromAny" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the aData value expressed in the unit aUnit, into the current unit for the working environment, as defined for the physical quantity aQuantity by the last call to the SetCurrentUnit function.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_CurrentFromLS">
<code class="descname">unitsapi_CurrentFromLS</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_CurrentFromLS" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the local system units value to the current unit value. Example: CurrentFromLS(1000.,’LENGTH’) returns 1. if current length unit is meter and LocalSystem is MDTV.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_CurrentFromSI">
<code class="descname">unitsapi_CurrentFromSI</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_CurrentFromSI" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the SI system units value to the current unit value. Example: CurrentFromSI(0.001,’LENGTH’) returns 1 if current length unit is millimeter.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_CurrentToAny">
<code class="descname">unitsapi_CurrentToAny</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_CurrentToAny" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the aData value expressed in the current unit for the working environment, as defined for the physical quantity aQuantity by the last call to the SetCurrentUnit function, into the unit aUnit.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_CurrentToLS">
<code class="descname">unitsapi_CurrentToLS</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_CurrentToLS" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the current unit value to the local system units value. Example: CurrentToLS(1.,’LENGTH’) returns 1000. if the current length unit is meter and LocalSystem is MDTV.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_CurrentToSI">
<code class="descname">unitsapi_CurrentToSI</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_CurrentToSI" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the current unit value to the SI system units value. Example: CurrentToSI(1.,’LENGTH’) returns 0.001 if current length unit is millimeter.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_CurrentUnit">
<code class="descname">unitsapi_CurrentUnit</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_CurrentUnit" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns the current unit dimension &lt;aUnit&gt; from the unit quantity &lt;aQuantity&gt;.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aQuantity</strong> (<em>char *</em>) – </td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">char *</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_DimensionAmountOfSubstance">
<code class="descname">unitsapi_DimensionAmountOfSubstance</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_DimensionAmountOfSubstance" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_DimensionElectricCurrent">
<code class="descname">unitsapi_DimensionElectricCurrent</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_DimensionElectricCurrent" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_DimensionLength">
<code class="descname">unitsapi_DimensionLength</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_DimensionLength" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_DimensionLess">
<code class="descname">unitsapi_DimensionLess</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_DimensionLess" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_DimensionLuminousIntensity">
<code class="descname">unitsapi_DimensionLuminousIntensity</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_DimensionLuminousIntensity" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_DimensionMass">
<code class="descname">unitsapi_DimensionMass</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_DimensionMass" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_DimensionPlaneAngle">
<code class="descname">unitsapi_DimensionPlaneAngle</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_DimensionPlaneAngle" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_DimensionSolidAngle">
<code class="descname">unitsapi_DimensionSolidAngle</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_DimensionSolidAngle" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns the basic dimensions.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_DimensionThermodynamicTemperature">
<code class="descname">unitsapi_DimensionThermodynamicTemperature</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_DimensionThermodynamicTemperature" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_DimensionTime">
<code class="descname">unitsapi_DimensionTime</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_DimensionTime" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_Dimensions">
<code class="descname">unitsapi_Dimensions</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_Dimensions" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>return the dimension associated to the quantity</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aQuantity</strong> (<em>char *</em>) – </td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">Handle_Units_Dimensions</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_LSToSI">
<code class="descname">unitsapi_LSToSI</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_LSToSI" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the local system units value to the SI system unit value. Example: LSToSI(1.,’LENGTH’) returns 0.001 if the local system length unit is millimeter.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_LocalSystem">
<code class="descname">unitsapi_LocalSystem</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_LocalSystem" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Returns the current local system units.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">UnitsAPI_SystemUnits</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_Reload">
<code class="descname">unitsapi_Reload</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_Reload" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">void</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_SIToLS">
<code class="descname">unitsapi_SIToLS</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_SIToLS" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Converts the SI system unit value to the local system units value. Example: SIToLS(1.,’LENGTH’) returns 1000. if the local system length unit is millimeter.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aData</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)"><em>float</em></a>) – </li>
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a class="reference external" href="https://docs.python.org/2/library/functions.html#float" title="(in Python v2.7)">float</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_Save">
<code class="descname">unitsapi_Save</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_Save" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>saves the units in the file .CurrentUnits of the directory pointed by the CSF_CurrentUnitsUserDefaults environment variable.</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">void</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_SetCurrentUnit">
<code class="descname">unitsapi_SetCurrentUnit</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_SetCurrentUnit" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Sets the current unit dimension &lt;aUnit&gt; to the unit quantity &lt;aQuantity&gt;. Example: SetCurrentUnit(‘LENGTH’,’millimeter’)</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>aQuantity</strong> (<em>char *</em>) – </li>
<li><strong>aUnit</strong> (<em>char *</em>) – </li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">void</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="OCC.UnitsAPI.unitsapi_SetLocalSystem">
<code class="descname">unitsapi_SetLocalSystem</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#OCC.UnitsAPI.unitsapi_SetLocalSystem" title="Permalink to this definition">¶</a></dt>
<dd><ul class="simple">
<li>Sets the local system units. Example: SetLocalSystem(UnitsAPI_MDTV)</li>
</ul>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>aSystemUnit</strong> (<em>UnitsAPI_SystemUnits</em>) – default value is UnitsAPI_SI</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">void</td>
</tr>
</tbody>
</table>
</dd></dl>

</div>


           </div>
           <div class="articleComments">
            
           </div>
          </div>
          <footer>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2017, Thomas Paviot.

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  

    <script type="text/javascript">
        var DOCUMENTATION_OPTIONS = {
            URL_ROOT:'./',
            VERSION:'0.18',
            COLLAPSE_INDEX:false,
            FILE_SUFFIX:'.html',
            HAS_SOURCE:  true,
            SOURCELINK_SUFFIX: '.txt'
        };
    </script>
      <script type="text/javascript" src="static/jquery.js"></script>
      <script type="text/javascript" src="static/underscore.js"></script>
      <script type="text/javascript" src="static/doctools.js"></script>

  

  
  
    <script type="text/javascript" src="static/js/theme.js"></script>
  

  
  
  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.StickyNav.enable();
      });
  </script>
   

</body>
</html>